﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupList.aspx.cs" Inherits="GroupList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Inc/Style/Style.css" rel="stylesheet" />
    
    <link href="../Inc/artDialogskins/blue.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-common.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.artDialog.basic.js" type="text/javascript"></script>
    <script src="../Scripts/artDialog.iframeTools.js" type="text/javascript"></script>
    <script src="../Scripts/Module/SystemManage/GroupAuthority.js" type="text/javascript"></script>
    <script type="text/javascript">
        function GroupAdd() {
            window.location.href = "../SystemManage/GroupAuthority.aspx?PID=36&Gid=0";
        }
    </script>
    <script src="../Scripts/Module/Common/Common.js" type="text/javascript"></script>
</head>
<body>
    <form id="frmGroup" runat="server">
    <table style="width: 100%; height: 100%; word-wrap: break-word;" cellspacing="7">
        <tr>
            <td colspan="2" style="width: 100%;">
                <div class="system_Info">
                    <div class="system_Top">
                        <div class="user_regist_title">
                            <asp:Literal runat="server" ID="ltlTitle"></asp:Literal>
                        </div>
                    </div>
                    <div class="user_List_All">
                        <div class="user_List_top" style="height: 34px;">
                            <table class="tableStyle" style="width: 100%">
                                <tr style="color: #333333; background-color: #F7F6F3;">
                                    <td class="user_List_styleLeft">
                                        快捷操作：
                                    </td>
                                    <td class="user_List_styleRight">
                                        <div class="user_List_Button">
                                            <input id="btnGroupAdd" type="button" class="common_Button" value="新增角色" onclick="GroupAdd()"
                                                runat="server" visible="false" />
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <table class="table-style table-hover user_List_txt">
                            <asp:Repeater runat="server" ID="gvGroupList" OnItemDataBound="gvGroupList_ItemDataBound">
                                <HeaderTemplate>
                                    <thead class="thead">
                                        <tr class="th">
                                            <th>
                                                序号
                                            </th>
                                            <th>
                                                角色名称
                                            </th>
                                            <th>
                                                说明
                                            </th>
                                            <th>
                                                有效范围
                                            </th>
                                            <th>
                                                创建者
                                            </th>
                                            <th>
                                                操作
                                            </th>
                                        </tr>
                                    </thead>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr class="td">
                                        <td>
                                            <asp:Label ID="lblNumber" runat="server" Text="1"></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <%# Eval("GroupName")%>
                                        </td>
                                        <td style="text-align: left">
                                            <%# Eval("GroupRemark")%>
                                        </td>
                                        <td style="text-align: left">
                                            <%# Eval("Ispublic").ToString() == "True"?"所有店铺":"本店铺" %>
                                        </td>
                                        <td style="text-align: left">
                                            <%# Eval("UserName")%>
                                        </td>
                                        <td class="listtd" style="width: 60px;">
                                         <asp:Label ID="lblGroupID" runat="server" Text='<%# Eval("GroupID")%>' Visible="false"></asp:Label>
                                         <asp:Label ID="lblParentIDStr" runat="server" Text='<%# Eval("ParentIDStr")%>' Visible="false"></asp:Label>
                                         <asp:Label ID="lblIsPublic" runat="server" Text='<%# Eval("IsPublic")%>' Visible="false"></asp:Label>
                                         <asp:Label ID="lblCreateUserID" runat="server" Text='<%# Eval("CreateUserID")%>' Visible="false"></asp:Label>
                                            <a href='<%#string.Format("GroupAuthority.aspx?PID=36&GID={0}&ParentGroupID={1}", Eval("GroupID"),Eval("ParentGroupID"))%>'
                                                id="hyGroupPermission" runat="server" visible="false"  title="权限设定">
                                                <img src="../images/Gift/system.png" title="权限设定" alt="权限设定" />
                                            </a><a href="#" id="hyGroupel" runat="server" width="30px" visible="false" onclick='<%# string.Format("return btnGroupDel(\"{0}\",\"{1}\")",Eval("GroupName").ToString().Replace("　","").Replace("|---",""),Eval("GroupID")) %>'>
                                                <img src="../images/Gift/del.png" alt="删除" title="删除" /></a>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                         
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
